export default function useKV() {
	//用户类型
	const userTypeMap={
		0:'游客',
		1:'内部员工',
		2:'尊享客户',
	}
	//时间历史分区
	const timeGroupMap = [ //单位：秒
		{ name: '今天', value: 86400 },
		{ name: '昨天', value: 86400*2 },
		{ name: '近一周内', value: 86400*7 },
		{ name: '近30天内', value: 86400*30 },
		{ name: '更早', value: -1 },
	]
	//llm大模型种类定义
	const llmMap = {
		'deepseek-v3': { label:'ds-v3',imgPath:'/img/llm/deepseek.svg' },
		'deepseek-r1': { label:'ds-r1',imgPath:'/img/llm/deepseek.svg' },
		'qwen-max': { label:'千问',imgPath:'/img/llm/qwen.svg' },
	}
	//根据现在时间获取时间历史分区
	const getTimeGroupName =(longDivTime:number)=> {
		for(let i=0; i<timeGroupMap.length-1; ++i){
			if(longDivTime <= timeGroupMap[i].value)	return timeGroupMap[i].name
			else if(timeGroupMap[i].value==-1)	return '更早'
		}
		return '更早'
	}
	//判断是否在移动端
	const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);

	//朗读语音风格列表
	const voiceStyle = [
	{name: "知楠（广告男声）", value: "sambert-zhinan-v1"},
	{name: "知琪（温柔女声）", value: "sambert-zhiqi-v1"},
	{name: "知厨（新闻播报）", value: "sambert-zhichu-v1"},
	{name: "知德（新闻男声）", value: "sambert-zhide-v1"},
	{name: "知佳（标准女声）", value: "sambert-zhijia-v1"},
	{name: "知茹（新闻女声）", value: "sambert-zhiru-v1"},
	{name: "知倩（配音解说、新闻播报）", value: "sambert-zhiqian-v1"},
	{name: "知祥（配音解说）", value: "sambert-zhixiang-v1"},
	{name: "知薇（萝莉女声）", value: "sambert-zhiwei-v1"},
	{name: "知浩（咨询男声）", value: "sambert-zhihao-v1"},
	{name: "知婧（严厉女声）", value: "sambert-zhijing-v1"},
	{name: "知茗（诙谐男声）", value: "sambert-zhiming-v1"},
	{name: "知墨（情感男声）", value: "sambert-zhimo-v1"},
	{name: "知娜（浙普女声）", value: "sambert-zhina-v1"},
	{name: "知树（资讯男声）", value: "sambert-zhishu-v1"},
	{name: "知莎（知性女声）", value: "sambert-zhistella-v1"},
	{name: "知婷（电台女声）", value: "sambert-zhiting-v1"},
	{name: "知笑（资讯女声）", value: "sambert-zhixiao-v1"},
	{name: "知雅（严厉女声）", value: "sambert-zhiya-v1"},
	{name: "知晔（青年男声）", value: "sambert-zhiye-v1"},
	{name: "知颖（软萌童声）", value: "sambert-zhiying-v1"},
	{name: "知媛（知心姐姐）", value: "sambert-zhiyuan-v1"},
	{name: "知柜（直播女声）", value: "sambert-zhigui-v1"},
	{name: "知硕（自然男声）", value: "sambert-zhishuo-v1"},
	{name: "知妙（多种情感女声）", value: "sambert-zhimiao-emo-v1"},
	{name: "知猫（直播女声）", value: "sambert-zhimao-v1"},
	{name: "知伦（悬疑解说）", value: "sambert-zhilun-v1"},
	{name: "知飞（激昂解说）", value: "sambert-zhifei-v1"},
	{name: "知达（标准男声）", value: "sambert-zhida-v1"},
	]
	return {
		userTypeMap,timeGroupMap,llmMap,isMobile,voiceStyle,
		getTimeGroupName,
	}
}